import request from '@/utils/request'
import { getToken } from '@/utils/auth'

export function useroptionList(data) {
  return request({
    url: '/account/getList',
    method: 'post',
    params: getToken(),
    data
  })
}

export function brandoptionList(data) {
  return request({
    url: '/brand/getList',
    method: 'post',
    params: getToken(),
    data
  })
}

export function channeloptionList(data) {
  return request({
    url: '/channel/getList',
    method: 'post',
    params: getToken(),
    data
  })
}

export function getBingdingList(data) {
  return request({
    url: '/band/getList',
    method: 'post',
    params: getToken(),
    data
  })
}

export function fetchList(data) {
  return request({
    url: '/band/getPageList',
    method: 'post',
    params: getToken(),
    data
  })
}

export function saveBinding(data) {
  return request({
    url: '/band/save',
    method: 'post',
    params: getToken(),
    data
  })
}

export function uploadFile(data) {
  return request({
    url: '/band/uploadActivit',
    method: 'post',
    params: getToken(),
    data
  })
}
